export function get(value) {
  let items = {};

  if (typeof value === "string" && value.trim() !== "") {
    value.split(";").forEach((pair) => {
      let arr = pair.split(":");

      if (arr.length === 2) {
        if (arr[0].indexOf(",") > -1) {
          // Multiple Values
          arr[0].split(",").forEach((key) => {
            items[key.trim()] = arr[1].trim();
          });
        } else {
          items[arr[0].trim()] = arr[1].trim();
        }
      }
    });
  }

  return items;
}
